function pmform() {
	var o = this;
	this.payInfo = "姹囧叆閾惰锛歕n姹囨閲戦锛歕n姹囨鏃堕棿(鏈�-鏃� 鏃�:鍒�)锛歕n姹囨鐢ㄩ€旓細";
	this.init = function(initInfo) {};
	this.getCustomer = function(obj, parm) {
		var _this = $(obj);
		var _oldClick = _this.attr("onclick");
		var _oldText = _this.text();
		glb.ajaxLoad(glb.ajaxUcUrl + "loadmsgcustomer", "json", function() {
			_this.text("姝ｅ湪杩炵嚎").attr("onclick", "")
		}, function(data) {
			var d = eval(data);
			if (d.loginStatus == 0) {
				location.href = "/reg/login.html"
			} else {
				if (d.status == 1) {
					location.href = "/pm/" + d.sid + ".html?t=" + parm
				} else {
					_this.text(_oldText).attr("onclick", _oldClick);
					o.jalert("杩炵嚎澶辫触锛屾偍鐨勭綉缁滃紓甯�")
				}
			}
		}, function() {
			_this.text(_oldText).attr("onclick", _oldClick);
			o.jalert("杩炵嚎澶辫触锛屾偍鐨勭綉缁滃紓甯�")
		})
	};
	this.getMsg = function(obj, ToUID) {
		var _this = $(obj);
		var _oldClick = _this.attr("onclick");
		glb.ajax(glb.ajaxUcUrl + "loadmsgsession", "json", "ToUID=" + ToUID, function() {
			_this.text("姝ｅ湪杩炵嚎").attr("onclick", "")
		}, function(data) {
			var d = eval(data);
			if (d.loginStatus == 0) {
				location.href = "/reg/login.html"
			} else {
				if (d.status == 1) {
					location.href = "/pm/" + d.sid + ".html"
				} else {
					_this.text("绉佽亰").attr("onclick", _oldClick);
					o.jalert(d.status == 2 ? "涓嶈兘涓庤嚜宸辩鑱�" : "杩炵嚎澶辫触锛屾偍鐨勭綉缁滃紓甯�")
				}
			}
		}, function() {
			_this.text("绉佽亰").attr("onclick", _oldClick);
			o.jalert("杩炵嚎澶辫触锛屾偍鐨勭綉缁滃紓甯�")
		})
	};
	this.jalert = function(info) {
		$.jalerttimer("鎿嶄綔鎻愮ず", info, 650, function() {
			$.jfnclose();
			$("#clt_msg").focus()
		}, null)
	};
	this.strChineseLen = function(str) {
		var strlength = 0;
		var lst = /[\u4E00-\u9FA5]/;
		for (i = 0; i < str.length; i++) {
			if (lst.test(str.charAt(i))) {
				strlength = strlength + 2
			} else {
				strlength = strlength + 1
			}
		}
		return strlength
	}
};
